﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Gmis.Public;

namespace Gmis.Web.Manage
{
    public partial class Main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(CookieFunction.GetCookie("userId")))
            {
                Response.Redirect("~/Index.aspx");
            }                        
        }

        protected void LinkOut_Click(object sender, EventArgs e)
        {
            CookieFunction.SetCookie("userId","");
            CookieFunction.SetCookie("userName","");
            Response.Redirect("~/Index.aspx");
        }
    }
}